package org.yly.game.rpggame.domain.model.player;

import java.util.Date;

import org.yly.game.rpggame.domain.model.DomainEvent;

public class PlayerTaskSubmitEvent implements DomainEvent {


    private int eventVersion;
    private Date occurredOn;
    private String taskId;

    public PlayerTaskSubmitEvent(String taskId) {

        this.eventVersion = 1;
        this.occurredOn = new Date();
        this.taskId = taskId;
    }

    public int eventVersion() {
        return eventVersion;
    }

    @Override
    public Date occurredOn() {
        return this.occurredOn;
    }

    public String getTaskId() {
        return this.taskId;
    }

}
